var sys_config=cache.get("sys_config")
if(sys_config==null){
	sys_config=dao.select("select `key`,`value` from sys_config","dict")
	cache.put("sys_config",sys_config)
}
data("config",sys_config)
var Permission={has:function(url){
		if(sattr("admin")==null){
			return false;
		}
		if(sattr("admin")!=null&&sattr("admin").role_id==1){
			return true;
		}
		return Auth.has(url,sattr("admin").auths)
	}}
data("permission",Permission)
//attr("www","http://192.168.1.6/")
data("www","https://device.videa.ink/")
//attr("www","https://gyxkeji.com/")
